package com.demo.consumer;

import com.demo.provider.IDubboProvider;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * 消费者实现类
 */
@Service
public class ConsumerService implements IConsumerService{

    @DubboReference
    private IDubboProvider dubboProvider;

    @Override
    public String getProviderAppName() {
       return dubboProvider.getAppName();
    }
}
